package cn.com.service;

import cn.com.dao.UserMapper;
import cn.com.pojo.UserBean;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class UserServiceImpl implements UserService{
    @Resource
    private UserMapper userMapper;


    @Override
    public List<UserBean> findAll() {
        return userMapper.findAll();
    }

    @Override
    public UserBean getByTel(String telephone) {
        return userMapper.getByTel(telephone);
    }

    @Override
    public int add(UserBean userBean) {
        return userMapper.add(userBean);
    }

    @Override
    public int update(UserBean userBean) {
        return userMapper.update(userBean);
    }
}
